<!--
 * @Author: shy_didi
 * @Date: 2020-06-11 11:54:24
 * @LastEditTime: 2020-06-12 11:19:52
 * @LastEditors: Please set LastEditors
 * @Description: 合作机构
 * @FilePath: \发明人\fmr\src\pages\support\components\partners.vue
--> 
<template>
  <div class="partners">
    <ul class="p-ul">
      <li class="p-li" v-for="item in datas" :key="item.id">
        <van-image :src="item.url" />
      </li>
    </ul>
    <div class="more">
      <van-button class="button">查看更多</van-button>
    </div>
  </div>
</template>

<script>
import * as api from "@/request/api/apiList/partner.js";
export default {
  data() {
    return {
      datas: []
    };
  },
  methods: {
    async API_invest(page=2,perPage=8) {
      let result = {
        page,
        perPage
      }
      return await api.invest(result);
    }
  },
  async created() {
    let res = await this.API_invest();
    //console.log(res);
    if(res.data.code === 200){
      this.datas = res.data.data.data
    }
    //console.log(this.datas)
  }
};
</script>

<style lang="scss" scoped>
@import "@/style/support.scss"
</style>